import {post, get} from "./require";
// 获取code
export const postInterCode = (id, parmas) =>
    post(`/sign/in/interCode/${id}`, parmas);
// 获取基本信息
export const getFind = (id, parmas) => get(`/sign/in/find/${id}`, parmas);
// 生成合同
export const getGenContract = (id, parmas) =>
    get(`/sign/in/genContract/${id}`, parmas);
// 信息确认
export const postConfirmInfo = (id, parmas) =>
    post(`/sign/in/confirmInfo/${id}`, parmas);
// 查看个人信息
export const getBasicInfo = (id, parmas) =>
    get(`/sign/in/basicInfo/${id}`, parmas);
// 查看代扣信息
export const getWithHoldInfo = (id, parmas) =>
    get(`/sign/in/withHoldInfo/${id}`, parmas);
// 查看合同
export const getContract = (id, parmas) =>
    get(`/sign/in/contract/${id}`, parmas);
// 上传身份证
export const postUploadCard = (id, parmas) =>
    post(`/sign/in/uploadCard/${id}`, parmas);
// 上传视频
export const postUploadVideo = (id, parmas) =>
    post(`/sign/in/uploadVideo/${id}`, parmas);
// 阿里云人脸识别
export const postInitFace = (id, parmas) =>
    post(`/sign/in/initFaceVerify/${id}`, parmas);
// 签约
export const postFaceCheck = (id, parmas) =>
    post(`/sign/in/faceCheck/${id}`, parmas);
//获取验证码接口
export const registerCode = (id, parmas) =>
    post(`/sign/in/registerCode/${id}`, parmas);
//短信确认 （下一步）
export const confirmMsg = (id, parmas) =>
    post(`/sign/in/confirmMsg/${id}`, parmas);
//完成签约
export const completeSign = (id, parmas) =>
    post(`/sign/in/complete/${id}`, parmas);
//下载pdf
export const downloadPDF = (id, parmas) =>
    get(`/sign/in/contractUrl/${id}`, parmas)
// 签约完成
export const getStatus = (id, parmas) =>
    get(`/sign/in/status/${id}`, parmas)
// 获取上传视频的oss签名
export const getOssInfo = (id) =>
    get(`/sign/in/findOMap/${id}`)
// 上传oss文件
export const postOssFile = (url, parmas) =>
    post(`${url}`, parmas);
// 上传承诺信息视频（上传文件回调保存）
export const postUploadVideoHui = (id, parmas) =>
    post(`/sign/in/uploadVideo/${id}`, parmas);

// 申请签约
export const filedSign = (channel,id) =>
    get(`/sign/in/filedSign/${channel}/${id}`);

// 申请签约
export const confirmSign = (channel,code,id) =>
    get(`/sign/in/confirmSign/${channel}/${code}/${id}`);

// 检查签约
export const checkCompleteSign = (id) =>
    get(`/sign/in/checkCompleteSign/${id}`);